css: Fix leak of lists while building tree
authorAlexander Larsson <alexl@redhat.com>
Thu, 29 Nov 2012 18:10:57 +0000 (19:10 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 30 Nov 2012 13:53:30 +0000 (14:53 +0100)
gtk/gtkcssselector.c

index a9800ac8bcc7655004c92e3f8cc6ec4e480144cf..29ca387e3dbf0ac49347c3b1f3e055d139e8b106 100644 (file)
@@ -1946,6 +1946,9 @@ subdivide_infos (GList *infos, GtkCssSelectorTree *parent)
   if (remaining)
     tree->sibling = subdivide_infos (remaining, parent);
 
+  g_list_free (matched);
+  g_list_free (remaining);
+
   return tree;
 }